﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using PSE.Communication.Fix.Common.Fixml.Enum;

namespace PSE.Communication.Fix.Common.Fixml
{
    [XmlRoot("Alloc")]
    public class AllocationData
    {
        [XmlAttribute("Acct")]
        public int Account { get; set; }

        [XmlIgnore]
        public Source Source { get; set; }

        [XmlAttribute("ActIDSrc")]
        public int SourceValue
        {
            get { return (int)Source; }
            set { Source = (Source)value; }
        }

        [XmlAttribute("Qty")]
        public int Quantity { get; set; }

        [XmlAttribute("IndAllocID")]
        public int ItemId { get; set; }

        [XmlIgnore]
        public Method Method { get; set; }

        [XmlAttribute("Meth")]
        public int MethodValue
        {
            get { return (int)Method; }
            set { Method = (Method)value; }
        }

        [XmlIgnore]
        public Responsibility DelayResponsibility { get; set; }

        //[XmlAttribute("DelayResp")]
        //public int DelayResponsibilityValue
        //{
        //    get { return (int)DelayResponsibility; }
        //    set { DelayResponsibility = (Responsibility)value; }
        //}
    }
}
